function getMemberList (params) {
  return $axios({
    url: '/cost/page',
    method: 'get',
    params
  })
}

// 删除数据接口
const deleteCost = (costId) => {
  return $axios({
    url: '/cost',
    method: 'delete',
    params: { costId }
  })
}

// 修改---启用禁用接口
function enableOrDisableEmployee (params) {
  return $axios({
    url: '/cost',
    method: 'put',
    data: { ...params }
  })
}

// 新增---添加员工
function addCost (params) {
  return $axios({
    url: '/cost',
    method: 'post',
    data: { ...params }
  })
}

// 修改---添加员工
function editCost (params) {
  return $axios({
    url: '/cost',
    method: 'put',
    data: { ...params }
  })
}

// 修改页面反查详情接口
function queryCostById (id) {
  return $axios({
    url: `/cost/${id}`,
    method: 'get'
  })
}